#include <stdbool.h>
#include <stdint.h>

#include "../Core/Inc/tim.h"

#define BSP_PWM_Ready(htim, channel) \
  (TIM_CHANNEL_STATE_GET(htim, channel) != HAL_TIM_CHANNEL_STATE_READY)

uint8_t BSP_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel,
                      uint32_t *pData, uint16_t Length);
uint8_t BSP_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel);
